<?php
use yii\helpers\Html;
/* @var $this \yii\web\View */
/* @var $content string */


if (Yii::$app->controller->action->id === 'login') { 
/**
 * Do not use this code in your template. Remove it. 
 * Instead, use the code  $this->layout = '//main-login'; in your controller.
 */
    echo $this->render(
        'main-login',
        ['content' => $content]
    );
} else {

    backend\assets\ManageSystemAsset::register($this);
    ?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <?= Html::csrfMetaTags() ?>
    <title><?= Yii::$app->name ?></title>
    <?php $this->head() ?>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<?php $this->beginBody() ?>

<div id="wrapper">
    <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0;">

        <?= $this->render(
            'header.php') ?>

        <?= $this->render(
            'left.php')
        ?>



    </nav>
    <?= $this->render(
        'content.php',
        ['content' => $content]
    ) ?>
</div>
    <!-- jQuery -->
    <?php
    $js=<<<JS
        $('.tooltips').tooltip({
            selector: "[data-toggle=tooltip]",
            container: "body"
        });
        $("[data-toggle=popover]").popover();
JS;
    $this->registerJs($js);
    ?>

    <?php $this->endBody() ?>

    </body>
</html>
    <?php $this->endPage() ?>

<?php } ?>





